package ooday05;

public class StaticFinalDemo {
    public static void main(String[] args) {
        System.out.println(Loo.PI);//通过类名打点
        //Loo.PI=3.1415926; 编译错误，常量不可被改变
    }
}
class Loo{
    public static final double PI=3.14159;
    public static final int NUM=5;//常量必须声明初始化
}